﻿using HenuAlbum.Identity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace HenuAlbum.Models
{
    public class Class
    {
        public int Id { get; set; }

        [MaxLength(32)]
        public string Name { get; set; }

        public int GradeId { get; set; }

        public Grade Grade { get; set; }

        public int MajorId { get; set; }

        public Major Major { get; set; }

        public List<PersonalAlbum> PersonalAlbums { get; set; } = new List<PersonalAlbum>();

        public List<User> Students { get; set; } = new List<User>();
    }
}